package com.haoyeteng.sxbd.modular.business.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 合同管理
 * </p>
 *
 * @author haoyeteng123
 * @since 2019-10-04
 */
@TableName("bus_contract")
public class Contract extends Model<Contract> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "contract_id", type = IdType.AUTO)
    private Integer contractId;
    
    /**
     * 合同编号
     */
    @TableField("contract_no")
    private String contractNo;
    /**
     * 甲方名称
     */
    @TableField("frist_name")
    private String fristName;
    /**
     * 地址
     */
    private String address;
    /**
     * 联系人
     */
    private String linkman;
    /**
     * 电话
     */
    private String phone;
    /**
     * 申请时间
     */
    @TableField("apply_time")
    private Date applyTime;
    
    /**
     * 合同状态（0：草稿，1：正式，2：作废）
     */
    private Integer status;
    /**
     * 订单主键
     */
    @TableField("order_id")
    private String orderId;
    
    /**
     * 用户主键
     */
    @TableField("user_id")
    private Integer userId;


    public Integer getContractId() {
        return contractId;
    }

    public void setContractId(Integer contractId) {
        this.contractId = contractId;
    }
    
    public String getContractNo() {
		return contractNo;
	}

	public void setContractNo(String contractNo) {
		this.contractNo = contractNo;
	}

	public String getFristName() {
        return fristName;
    }

    public void setFristName(String fristName) {
        this.fristName = fristName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLinkman() {
        return linkman;
    }

    public void setLinkman(String linkman) {
        this.linkman = linkman;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getOrderId() {
        return orderId;
    }
    
    public Date getApplyTime() {
		return applyTime;
	}

	public void setApplyTime(Date applyTime) {
		this.applyTime = applyTime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public void setOrderId(String orderId) {
        this.orderId = orderId;
    }
	
    public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Override
    protected Serializable pkVal() {
        return this.contractId;
    }

	@Override
	public String toString() {
		return "Contract [contractId=" + contractId + ", fristName=" + fristName + ", address=" + address + ", linkman="
				+ linkman + ", phone=" + phone + ", applyTime=" + applyTime + ", status=" + status + ", orderId="
				+ orderId + "]";
	}

    
}
